<?php
$ListStatus		= gpc_getStringArray("ListStatus");
$listorder		= gpc_getStringArray("listorder");
$ListPlace		= gpc_getStringArray("ListPlace");
$Listid			= gpc_getStringArray("Listid");

$count_id=count($Listid);

for ($i = 0; $i < $count_id ; $i ++)
{
		$sql_update = "UPDATE  tbladvertise SET
				  iStatus	 = '$ListStatus[$i]',
			 	  iPlace	 = '$ListPlace[$i]',
			 	  iOrder	 = '$listorder[$i]'
				  WHERE  iAdvertiseId = '$Listid[$i]'";

		$dbsql->query($sql_update);
}

page_transfer("Update status Advertise Success!",$pagetr);

exit();


?>
